package com.example.demo1.Demo2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class PeopleController {
    //属性注入
    @Autowired
    PeopleService peopleService;

    public void sayhi(){
        peopleService.sayhi();
    }
}
